<?php
declare (strict_types=1);

namespace app\data\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Jobdepartment extends BaseModel
{
    protected $table = 'ctmon_jobdepartment';
    protected $pk = 'department_id';
    protected $schema = [
        'department_id' => 'int',
        'department_name' => 'text',
        'sort_order' => 'int',
        'urlrewriter' => 'varchar',
        'pagetitle' => 'text',
        'pagekeywords' => 'text',
        'pagedesc' => 'text',
        'list_tlp' => 'varchar',
        'info_tlp' => 'varchar',
        'page_size' => 'int',
        'url' => 'varchar',
        'ver' => 'bigint',
        'create_time' => 'int',
        'update_time' => 'int',
        'delete_time' => 'int',
    ];


    /**
     * 职位列表
     * @return \think\model\relation\HasMany
     */
    public function jobpositions()
    {
        return $this->hasMany(Jobposition::class, 'department_id', 'department_id');
    }
}
